﻿using System;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    internal class QsiRecord : BiffRecord
    {
        private ushort an;
        private AutoFmt8 itblAutoFmt;
        private ushort ot;
        private XLUnicodeString rgchName;
        private ushort unused4;

        protected override void ReadContent(BiffReaderContext context, int length)
        {
            this.an = context.ReadUInt16();
            this.itblAutoFmt = (AutoFmt8)context.ReadUInt16();
            this.ot = context.ReadUInt16();
            var reserved = context.ReadUInt32();
            this.rgchName = new XLUnicodeString();
            rgchName.Read(context.Reader);
            this.unused4 = context.ReadUInt16();
        }

        internal override BiffRecordType RecordType
        {
            get { return BiffRecordType.Qsi; }
        }

        internal override void WriteContent(BiffWriterWorkbookContext context)
        {
            throw new NotImplementedException();
        }
    }
}